package cn.hj.spring.springboot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {

    @Autowired
    private Person p;
    @Autowired
    private int i;
    @GetMapping("/hello")
    public String hello(){
        return p.toString();


    }
}
